<html>
    <head>
        <title>首页</title>
		<meta name="layout" content="main" />
	    <style type="text/css">
        .slide{position:relative;width:630px;height:222px;padding:6px;}
        .slide .pic{overflow:hidden;width:500px;float:left;position:relative;}
        .slide .pic a{display:none;}
        .slide .pic img{width:505px;height:220px;border:1px solid #e4e4e4;}
        .slide .pic a.cur{display:block;}
        .slide .thumb{width:96px;float:right;}
        .slide .thumb a{display:block;height:50px;margin-bottom:2px;border:#fff 1px solid;padding:1px;}
        .slide .thumb a img{ height:50px;}
        .slide .thumb .cur, .slide .thumb a:hover{border:#ff6700 1px solid;}
 
        </style>
    </head>
    <body>
            <div class="slide">
            <div class="pic">
                <a style="display: block;" class="cur" href="#"><img src="/images/scroll/1.jpg"></a>
                <a href="#"><img src="/images/scroll/2.jpg"></a>
                <a href="#"><img src="/images/scroll/3.jpg"></a>
                <a href="#"><img src="/images/scroll/4.jpg"></a>
            </div>
            <div class="thumb">
                <a class="cur" href=""><img src="/images/scroll/1.jpg"></a>
                <a href=""><img src="/images/scroll/2.jpg"></a>
                <a href=""><img src="/images/scroll/3.jpg"></a>
                <a href=""><img src="/images/scroll/4.jpg"></a>
            </div>
        </div> 

             <div class="span-17 last mainColumn">
             <div class="span-17 last titleColumn">优秀教师</div>

              <table> 
                    <tbody>
                    <g:each in="${teacherInstanceList}" status="i" var="teacherInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" controller="teacher" id="${teacherInstance.id}">${fieldValue(bean: teacherInstance, field: "username")}</g:link><g:if test="${(new Date() - teacherInstance.createTime) < 3}"><img src="/images/new_4.png" border=0 alt="">
                            </g:if></td>
                            <td>${fieldValue(bean: teacherInstance, field: "realname")}</td>
                        
                            <td>${fieldValue(bean: teacherInstance, field: "sex")}</td>
                                                
                            <td>${fieldValue(bean: teacherInstance, field: "area")}</td>

                            <td>${fieldValue(bean: teacherInstance, field: "courses")}</td> 
                        </tr>
                    </g:each>
                    </tbody>
                </table>
                <div class="more"><g:link  controller="teacher" action="list" >更多...</g:link></div>
             </div>
             
 
             <div class="span-17 last mainColumn">
             <div class="span-17 last titleColumn">最新找家教信息</div>

                <table> 
                    <tbody>
                    <g:each in="${postInstanceList}" status="i" var="postInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" controller="post" id="${postInstance.id}">${postInstance.shortTitle()}</g:link><g:if test="${(new Date() - postInstance.createTime) < 3}"><img src="/images/new_4.png" border=0 alt="">
                            </g:if></td>
                        
                            <td>${postInstance.shortContent()}</td>
                        
                            <td>${fieldValue(bean: postInstance, field: "student")}</td>
                         
                            <td><g:formatDate date="${postInstance.createTime}"   /></td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
                <div class="more"><g:link  controller="postMgr" action="studentInfo">更多...</g:link></div>
             </div>    

             <div class="span-17 last mainColumn">
             <div class="span-17 last titleColumn">最新学员信息</div>

               <table> 
                    <tbody>
                    <g:each in="${studentInstanceList}" status="i" var="studentInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" controller="student" id="${studentInstance.id}">${fieldValue(bean: studentInstance, field: "username")}</g:link><g:if test="${(new Date() - studentInstance.createTime) < 3}"><img src="/images/new_4.png" border=0 alt="">
                            </g:if></td>
                            <td>${fieldValue(bean: studentInstance, field: "realname")}</td>
                        
                            <td>${fieldValue(bean: studentInstance, field: "sex")}</td>
                        
                            <td>${fieldValue(bean: studentInstance, field: "area")}</td> 
                            <td><g:formatDate date="${studentInstance.createTime}"   /></td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
                <div class="more"><g:link  controller="student" action="list"  >更多...</g:link></div> 
             </div>
            
 
             <div class="span-17 last mainColumn">
             <div class="span-17 last titleColumn">友情连接</div>
            <table width="100%" border="0" cellpadding="5" cellspacing="2">
<tr>
 <td align="left" width="96" height="25"><a href="http://xa.bendibao.com/" target="_blank">西安本地宝</a></td>
<td align="left" width="96" height="25"><a href="http://www.overseasstudy.cn" target="_blank">五洲留学网</a></td>
<td align="left" width="96" height="25"><a href="http://www.xazikao.com" target="_blank">西安自考网</a></td>
<td align="left" width="96" height="25"><a href="http://www.guanzhongrc.com" target="_blank">关中人才网</a></td>
 <td align="left" width="96" height="25"><a href="http://www.isheji.net" target="_blank">酷爱设计网</a></td> 
 </tr><tr align="center">
<td align="left" width="96" height="25"><a href="http://xian.8684.com/" target="_blank">西安公交查询</a></td>
<td align="left" width="96" height="25"><a href="http://www.029car.cn/" target="_blank">西安汽车网</a></td>
<td align="left" width="96" height="25"><a href="http://www.029iu.com/" target="_blank">西安爱游网</a></td>
<td align="left" width="96" height="25"><a href="http://www.xianwo.com/" target="_blank">西安窝</a></td>
<td align="left" width="96" height="25"><a href="http://www.gzsfjj.com" target="_blank">广州家教</a></td>
  
 </tr><tr align="center">
 <td align="left" width="96" height="25"><a href="http://www.ppkao.com" target="_blank">考试资料网</a></td>
<td align="left" width="96" height="25"><a href="http://www.paihangwang.net/" target="_blank">论文发表</a></td>
<td align="left" width="96" height="25"><a href="http://www.chengxinlw.com" target="_blank">职称论文</a></td>
<td align="left" width="96" height="25"><a href="http://www.chinafudaoban.com" target="_blank">中国辅导班联盟</a></td>
<td align="left" width="96" height="25"><a href="http://www.anycoach.com/" target="_blank">私人教练培训</a></td>

 </tr><tr align="center">
<td align="left" width="96" height="25"><a href="http://www.feisite.net/" target="_blank">飞思特教育</a></td>
<td align="left" width="96" height="25"><a href="http://www.029123.com" target="_blank">西安网址之家</a></td>
<td align="left" width="96" height="25"><a href="http://www.sinotranslator.com.cn/" target="_blank">北京翻译公司</a></td>
<td align="left" width="96" height="25"><a href="http://www.lyh888.cn" target="_blank">永华设计工作室</a></td>
<td align="left" width="96" height="25"><a href="http://www.029gouwu.com" target="_blank">西安购物网</a></td>
 
 </tr><tr align="center">
<td align="left" width="96" height="25"><a href="http://www.6msg.com/" target="_blank">西安新居网</a></td>
 <td align="left" width="96" height="25"><a href="http://www.xianrc.net/" target="_blank">西安人才网</a></td>
 <td align="left" width="96" height="25"><a href="http://www.sheji369.com" target="_blank">西安网站建设</a></td>
<td align="left" width="96" height="25"><a href="http://jy.biz178.com" target="_blank">教育连锁加盟网</a></td>
<td align="left" width="96" height="25"><a href="http://www.qysem.com/" target="_blank">百度优化</a></td>

 </tr><tr align="center">
<td align="left" width="96" height="25"><a href="http://www.jiemeng7.com" target="_blank">周公解梦大全</a></td>
<td align="left" width="96" height="25"><a href="http://www.558job.cn/" target="_blank">古都人才网</a></td>
<td align="left" width="96" height="25"><a href="http://www.fkask.com/" target="_blank">健康有问有答</a></td>
 <td align="left" width="96" height="25"><a href="http://www.jf369.org" target="_blank">艾瘦减肥网</a></td>
<td align="left" width="96" height="25"><a href="http://xa.1010jz.com" target="_blank">西安兼职网</a></td>

 </tr><tr align="center">
</tr>
</table>

            </div>
     <script type="text/javascript">   
var defaultOpts = { interval: 4000, fadeInTime: 300, fadeOutTime: 200 };
var _titles = $(".slide .thumb a");
var _bodies = $(".slide .pic a");
var _count = _titles.length;
var _current = 0;
var _intervalID = null;
var stop = function() { window.clearInterval(_intervalID); };
var slide = function(opts) {
	if (opts) {
		_current = opts.current || 0;
	} else {
		_current = (_current >= (_count - 1)) ? 0 : (++_current);
	};
	_bodies.filter(":visible").fadeOut(defaultOpts.fadeOutTime, function() {
		_bodies.eq(_current).fadeIn(defaultOpts.fadeInTime);
		_bodies.removeClass("cur").eq(_current).addClass("cur");
	});
	_titles.removeClass("cur").eq(_current).addClass("cur");
};
var go = function() {
	stop();
	_intervalID = window.setInterval(function() { slide(); }, defaultOpts.interval);
}; 
var itemMouseOver = function(target, items) {
	stop();
	var i = $.inArray(target, items);
	slide({ current: i });
}; 
_titles.hover(function() { if($(this).attr('class')!='cur'){itemMouseOver(this, _titles); }else{stop();}}, go);
_bodies.hover(stop, go);
go();
</script>  
    </body>
</html>